package link.jfire.socket.socketserver.util;

import java.nio.ByteBuffer;

public class SimpleHeadFactory implements HeadFactory
{
    
    @Override
    public void putHeadInBuffer(ByteBuffer buffer, byte command, int length)
    {
        buffer.put((byte) 0x1b);
        buffer.put((byte) 0x1b);
        buffer.put((byte) 0x1b);
        buffer.put((byte) 0x1b);
    }
    
    @Override
    public boolean fitHeadPtotocol(ByteBuffer buffer, int position)
    {
        return true;
    }
    
}
